package net.csdra.libraryborrowing.domain.user;

import net.csdra.libraryborrowing.domain.CMSJpaRepository;

import java.util.List;

/**
 * Created by add on 2017/10/17.
 */
public interface UserBorrowRepository extends CMSJpaRepository<UserBorrow, String> {
    /**
     * 根据ID获取借书清单
     * @param metaId, Id
     * @return
     */
    public UserBorrow findByMetaIdAndId(String metaId, String Id);

    /**
     * 根据bookCopyId和metaId查询记录
     */
    UserBorrow findByMetaIdAndBookCopyId(String metaId, String bookCopyId);
}
